﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Torimi.Wiki.Services
{
	/// <summary>
	/// XmlBackupServiceSettings class.
	/// </summary>
	public class XmlBackupServiceSettings : Dictionary<string, string>
	{
		#region Constructors...

		/// <summary>
		/// Initializes a new instance of the <see cref="XmlBackupServiceSettings"/> class.
		/// </summary>
		public XmlBackupServiceSettings() { }

		/// <summary>
		/// Initializes a new instance of the <see cref="XmlBackupServiceSettings"/> class.
		/// </summary>
		/// <param name="settings">The settings.</param>
		public XmlBackupServiceSettings(Dictionary<string, string> settings)
		{
			foreach (var setting in settings)
				this[setting.Key] = setting.Value;
		}

		#endregion

		public const string SettingNameDestinationFolder = "DestinationFolder";
		public const string SettingNameFileName = "FileName";

		#region Properties...

		/// <summary>
		/// Gets or sets the destination folder.
		/// </summary>
		/// <value>
		/// The destination folder.
		/// </value>
		public string DestinationFolder 
		{
			get { return this[SettingNameDestinationFolder]; }
			set { this[SettingNameDestinationFolder] = value; }
		}

		/// <summary>
		/// Gets or sets the name of the file.
		/// </summary>
		/// <value>
		/// The name of the file.
		/// </value>
		public string FileName
		{
			get { return this[SettingNameFileName]; }
			set { this[SettingNameFileName] = value; }
		}

		#endregion
	}
}